package com.yidian.server.system;

import com.yidian.entity.PageResult;
import com.yidian.pojo.system.Menu;

import java.util.List;
import java.util.Map;

/**
 * @author whb
 * @create 2021-06-08 17:24
 * @desciption 菜单Service
 */
public interface MenuService {
    public List<Menu> findAll();

    public PageResult<Menu> findPage(int page, int size);

    public List<Menu> findList(Map<String, Object> searchMap);

    public PageResult<Menu> findPage(Map<String, Object> searchMap, int page, int size);

    public Menu findById(String id);

    public void add(Menu menu);

    public void update(Menu menu);

    public void delete(String id);

    public List<Map> findAllMenu();

    public List<Map> findMenuByLoginName(String loginName);
}
